package cn.pxs.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document("t_blogs")
public class Blogs {
    @Id
    private String id;
    private String uid;
    private int hits;//点击次数
    private String title;//标题
    private Date date;//创建时间
    private String contentid;//内容表 id
    private String author;
    private String typeid;
    private String text;//纯文本

    @Override
    public String toString() {
        return "Blogs{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", hits=" + hits +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", contentid='" + contentid + '\'' +
                ", author='" + author + '\'' +
                ", typeid='" + typeid + '\'' +
                ", text='" + text + '\'' +
                '}';
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public int getHits() {
        return hits;
    }

    public void setHits(int hits) {
        this.hits = hits;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }
}
